var mongoose = require('mongoose')
mongoose.connect('mongodb://localhost/jiugu')
var Schema = mongoose.Schema
var msgInfoSchema = new Schema({
	name:[{//两人昵称
		type:String,
		required: true
	}],
	msg:[{//消息
		type:Object,
		default: '',
		required:true
	}],
	date:{// 时间
		type:String,
		required:true
	}
})
module.exports = mongoose.model('msgInfo',msgInfoSchema)